package com.joekai.view_demo.zdy_progress_bar;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

import com.joekai.view_demo.R;

public class ZdyProgressBarActivity extends AppCompatActivity {
    ZdyProgressBar circular_progress;
    ZdyProgressBar line_progress;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_zdy_progress_bar);
        setTitle("自定义进度条");
        circular_progress = findViewById(R.id.circular_progress);
        circular_progress.setMaxProgress(1000);
        circular_progress.setAnimatorProgress(890);
        circular_progress.setProgressType(ZdyProgressBar.ProgressType.CIRCULAR);

        line_progress = findViewById(R.id.line_progress);
        line_progress.setMaxProgress(300);
        line_progress.setAnimatorProgress(270);
    }
}